package zx.acc.Entity;

import java.math.BigDecimal;

public class Account {
	private int account_id;
	private String account_desc;
	private BigDecimal account_price;
	private String account_date;
	public int getAccount_id() {
		return account_id;
	}
	public void setAccount_id(int account_id) {
		this.account_id = account_id;
	}
	public String getAccount_desc() {
		return account_desc;
	}
	public void setAccount_desc(String account_desc) {
		this.account_desc = account_desc;
	}
	public BigDecimal getAccount_price() {
		return account_price;
	}
	public void setAccount_price(BigDecimal account_price) {
		this.account_price = account_price;
	}
	public String getAccount_date() {
		return account_date;
	}
	public void setAccount_date(String account_date) {
		this.account_date = account_date;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((account_date == null) ? 0 : account_date.hashCode());
		result = prime * result + ((account_desc == null) ? 0 : account_desc.hashCode());
		result = prime * result + account_id;
		result = prime * result + ((account_price == null) ? 0 : account_price.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Account other = (Account) obj;
		if (account_date == null) {
			if (other.account_date != null)
				return false;
		} else if (!account_date.equals(other.account_date))
			return false;
		if (account_desc == null) {
			if (other.account_desc != null)
				return false;
		} else if (!account_desc.equals(other.account_desc))
			return false;
		if (account_id != other.account_id)
			return false;
		if (account_price == null) {
			if (other.account_price != null)
				return false;
		} else if (!account_price.equals(other.account_price))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Account [account_id=" + account_id + ", account_desc=" + account_desc + ", account_price="
				+ account_price + ", account_date=" + account_date + "]";
	}
	public Account(int account_id, String account_desc, BigDecimal account_price, String account_date) {
		super();
		this.account_id = account_id;
		this.account_desc = account_desc;
		this.account_price = account_price;
		this.account_date = account_date;
	}
	public Account() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
